package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Permission;
import org.springframework.web.servlet.view.InternalResourceViewResolver;

import java.util.List;
import java.util.Set;

public interface PermissionDao {
    public Set<Permission> findByRoleId(Integer roleId);
    public Integer findIdByUsername(String username);
    public Integer findRoleIdByUserId(Integer id);
    public String  findRoleKeywordByRoleId(Integer id);
    public List<Integer> findPermissionIdsByRoleId(Integer id);
    public String findPermissionKeyWordByPermissionId(Integer id);
    public Page<Permission> selectByCondition(String queryString);
    public void add(Permission permission);
    public void edit(Permission permission);
    public Permission findById(Integer id);
    public void deleteById(Integer id);
    public void delete(Integer id);
    public List<Permission> findAll();


}
